/**
 * Created with IntelliJ IDEA
 * Description:
 * User: Administrator
 * Data: 2023 - 05 - 24
 * Time: 21:04
 */
public class Test {
    public static void main(String[] args) {
        LinkedList linkedList = new LinkedList();
        linkedList.addFirst(3);
        linkedList.addFirst(1);
        linkedList.addLast(1);
        linkedList.display();
        //linkedList.remove(1);
        linkedList.removeAllKey(1);
        linkedList.display();
        linkedList.addFirst(567);
        linkedList.addFirst(211);
        linkedList.addLast(985);
        linkedList.addLast(1000);
        linkedList.display();
        linkedList.clear();
        linkedList.display();
    }
}
